<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    table{
        border: 1px solid red;
        width:300px;
    }
    td,th{
        border: 1px solid red;
        height:30px;
       
    }
    td{
          /* 内 */
          padding-left: 3px;
    }
</style>
<body>
    
    <h1>table</h1>
    <!-- 属性 : border="1px" -->
    <!-- style -->

    <table>
        <tr>
            <th>序号</th>
            <th>姓名</th>
        </tr>
        <tr>
            <td>1</td>
            <td>李二狗</td>
        </tr>
        <tr>
            <td>2</td>
            <td>王春花</td>
        </tr>
    </table>

</body>
</html>